package com.suneee.logistic.dao;

import java.util.List;

import com.suneee.context.page.Page;
import com.suneee.logistic.entity.Logistic;
import com.suneee.logistic.entity.LogisticDTO;
import com.suneee.orm.Dao;

public interface LogisticDao extends Dao<Logistic, String> {

	/**
	 * 判断物流公司名称是否唯一
	 * 
	 * @param companyName
	 * @return
	 */
	public boolean existsName(String companyName);

	/**
	 * 判断物流公司名称是否唯一
	 * 
	 * @param logisticId
	 * @return
	 */
	public boolean existsId(String companyCode);

	

	/**
	 * 查询所有物流公司分类
	 * @return
	 */
	public Page<Logistic> listLogistic(LogisticDTO dto);
	
	public List<Logistic> listLogisticEn(LogisticDTO dto);
	

}
